/*
 * This file is Copyright 2002-2006 Loyola University Chicago,
 * Department of Computer Science and the Emerging Technologies Laboratory.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License via
 *    http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.citep.formats.ofx;

public class OFXAccount {
	public enum AccountType {
		CHECKING, //A standard checking account
		SAVINGS,  //A standard savings account
		MONEYMRKT, //A money market account
		CREDITLINE, //Credit line
		CMA,       //Cash management account
		CREDITCARD, //Credit card account
		INVESTMENT //Investment account
		
		
	}

	public String toString() {
		return String.format("accountId=%s, bankId=%s, accountName=%s, accountType=%s", accountId, bankId, accountName, accountType);
	}
	
	private String accountId; //bankid + branchid + accountId | acctid+acctkey for a credit card
	private String accountName;
	private AccountType accountType;
	private String currency; //currency in ISO-4217 format
	private String bankId;
	private String brokerId;
	private String branchId;
	private String accountNumber;
	
	public String getAccountId() {
		return accountId;
	}
	
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	
	public String getAccountName() {
		return accountName;
	}
	
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	
	public String getAccountNumber() {
		return accountNumber;
	}
	
	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}
	
	public AccountType getAccountType() {
		return accountType;
	}
	
	public void setAccountType(AccountType accountType) {
		System.out.println("TYPE:"+accountType);
		this.accountType = accountType;
	}
	
	public String getBankId() {
		return bankId;
	}
	
	public void setBankId(String bankId) {
		this.bankId = bankId;
	}
	
	public String getBranchId() {
		return branchId;
	}
	
	public void setBranchId(String branchId) {
		this.branchId = branchId;
	}
	
	public String getBrokerId() {
		return brokerId;
	}
	
	public void setBrokerId(String brokerId) {
		this.brokerId = brokerId;
	}
	
	public String getCurrency() {
		return currency;
	}
	
	public void setCurrency(String currency) {
		this.currency = currency;
	}

}
